import request from '../utils/request'

// 创建敏感词
export function createSensitiveWord(data) {
    return request({
        url: '/v1/sensitiveWord/create',
        method: 'post',
        data
    })
}

// 获取敏感词列表
export function getSensitiveWordList(params) {
    return request({
        url: '/v1/sensitiveWord/list',
        method: 'get',
        params
    })
}

// 更新敏感词
export function updateSensitiveWord(id, data) {
    return request({
        url: `/v1/sensitiveWord/update/${id}`,
        method: 'post',
        data
    })
}

// 删除敏感词
export function deleteSensitiveWord(id) {
    return request({
        url: `/v1/sensitiveWord/delete/${id}`,
        method: 'post'
    })
} 